"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const uploadIcon = require("../../icons/upload-icon.vue.cjs");
const antDesignVue = require("ant-design-vue");
require("../../upload-file/upload-file.vue.cjs");
const lodashEs = require("lodash-es");
const uploadFile_vue_vue_type_script_setup_true_lang = require("../../upload-file/upload-file.vue2.cjs");
const _hoisted_1 = { class: "me-sender-upload" };
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  __name: "upload",
  props: {
    uploadProps: { default() {
      return {
        url: "/",
        fieldName: "filedata",
        afterUpload() {
          return true;
        },
        beforeUpload() {
          return true;
        }
      };
    } },
    uploadEvents: { default() {
      return {};
    } }
  },
  setup(__props) {
    const props = __props;
    return (_ctx, _cache) => {
      return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
        vue.createVNode(uploadIcon.default, { class: "me-sender-upload-icon" }),
        _cache[2] || (_cache[2] = vue.createElementVNode("div", null, "支持 pdf, doc, xlsx, ppt, txt, image类型", -1)),
        vue.createVNode(uploadFile_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({
          "file-list": _ctx.uploadProps.fileList,
          "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => _ctx.uploadProps.fileList = $event)
        }, vue.unref(lodashEs.omit)(_ctx.uploadProps, ["fileList"]), vue.toHandlers(_ctx.uploadEvents)), {
          default: vue.withCtx(() => [
            vue.createVNode(vue.unref(antDesignVue.Button), { class: "me-sender-upload-btn" }, {
              default: vue.withCtx(() => _cache[1] || (_cache[1] = [
                vue.createTextVNode("上传文件")
              ])),
              _: 1
            })
          ]),
          _: 1
        }, 16, ["file-list"])
      ]);
    };
  }
});
exports.default = _sfc_main;
//# sourceMappingURL=upload.vue2.cjs.map
